package com.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


public class LoginServlet  {

	public String login(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		System.out.println("login.....");
		//约定：ajax
		return "out:成功";

	}

	public String reg(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		System.out.println("reg.....");
		//约定：重定向
		return "redirect:index.jsp";
	}
}
